/*---------------------------------------------------------------------
 * File name: hal_pwm.h
 *
 * Copyright (c) <2020-2022>, <ChenLong>
 *
 * All rights reserved.
 *
 * Author: ChenLong
 * Email: worldlong@foxmail.com
 *--------------------------------------------------------------------*/
#pragma once
/*
*/
#include "pwm.h"
/*
*/
class HAL_PWM : public hal::PWM
{
public:
  HAL_PWM() :
    PWM()
    {}
  
  bool init(hal::Timer *timer0, uint32_t cfg0);
  bool config(uint32_t cfg0);
  void set_percent(int index, float percent0);
  void set_percent(float *percent0);
  void set_percent(int index, uint32_t percent0);
  void set_percent(uint32_t *percent0);
};


